Restrict

annotation class Restrict(val min: Double = -Double.MAX_VALUE, val max: Double = Double.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)

Annotation-driven validation for Doubles

Author

fzzyhmstrs

Since

0.2.0, added widget type 0.6.3

Parameters

min

: Double - minimum allowable value, default to Double.MIN_VALUE

max

: Double - maximum allowable value, default to Double.MAX_VALUE

type

: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting

Properties

Link copied to clipboard
val max: Double
Link copied to clipboard
val min: Double
Link copied to clipboard